package com.hp.ssm.bean;

import java.util.ArrayList;
import java.util.List;

public class WoomExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WoomExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andWidIsNull() {
            addCriterion("wid is null");
            return (Criteria) this;
        }

        public Criteria andWidIsNotNull() {
            addCriterion("wid is not null");
            return (Criteria) this;
        }

        public Criteria andWidEqualTo(Integer value) {
            addCriterion("wid =", value, "wid");
            return (Criteria) this;
        }

        public Criteria andWidNotEqualTo(Integer value) {
            addCriterion("wid <>", value, "wid");
            return (Criteria) this;
        }

        public Criteria andWidGreaterThan(Integer value) {
            addCriterion("wid >", value, "wid");
            return (Criteria) this;
        }

        public Criteria andWidGreaterThanOrEqualTo(Integer value) {
            addCriterion("wid >=", value, "wid");
            return (Criteria) this;
        }

        public Criteria andWidLessThan(Integer value) {
            addCriterion("wid <", value, "wid");
            return (Criteria) this;
        }

        public Criteria andWidLessThanOrEqualTo(Integer value) {
            addCriterion("wid <=", value, "wid");
            return (Criteria) this;
        }

        public Criteria andWidIn(List<Integer> values) {
            addCriterion("wid in", values, "wid");
            return (Criteria) this;
        }

        public Criteria andWidNotIn(List<Integer> values) {
            addCriterion("wid not in", values, "wid");
            return (Criteria) this;
        }

        public Criteria andWidBetween(Integer value1, Integer value2) {
            addCriterion("wid between", value1, value2, "wid");
            return (Criteria) this;
        }

        public Criteria andWidNotBetween(Integer value1, Integer value2) {
            addCriterion("wid not between", value1, value2, "wid");
            return (Criteria) this;
        }

        public Criteria andWnumIsNull() {
            addCriterion("wnum is null");
            return (Criteria) this;
        }

        public Criteria andWnumIsNotNull() {
            addCriterion("wnum is not null");
            return (Criteria) this;
        }

        public Criteria andWnumEqualTo(String value) {
            addCriterion("wnum =", value, "wnum");
            return (Criteria) this;
        }

        public Criteria andWnumNotEqualTo(String value) {
            addCriterion("wnum <>", value, "wnum");
            return (Criteria) this;
        }

        public Criteria andWnumGreaterThan(String value) {
            addCriterion("wnum >", value, "wnum");
            return (Criteria) this;
        }

        public Criteria andWnumGreaterThanOrEqualTo(String value) {
            addCriterion("wnum >=", value, "wnum");
            return (Criteria) this;
        }

        public Criteria andWnumLessThan(String value) {
            addCriterion("wnum <", value, "wnum");
            return (Criteria) this;
        }

        public Criteria andWnumLessThanOrEqualTo(String value) {
            addCriterion("wnum <=", value, "wnum");
            return (Criteria) this;
        }

        public Criteria andWnumLike(String value) {
            addCriterion("wnum like", value, "wnum");
            return (Criteria) this;
        }

        public Criteria andWnumNotLike(String value) {
            addCriterion("wnum not like", value, "wnum");
            return (Criteria) this;
        }

        public Criteria andWnumIn(List<String> values) {
            addCriterion("wnum in", values, "wnum");
            return (Criteria) this;
        }

        public Criteria andWnumNotIn(List<String> values) {
            addCriterion("wnum not in", values, "wnum");
            return (Criteria) this;
        }

        public Criteria andWnumBetween(String value1, String value2) {
            addCriterion("wnum between", value1, value2, "wnum");
            return (Criteria) this;
        }

        public Criteria andWnumNotBetween(String value1, String value2) {
            addCriterion("wnum not between", value1, value2, "wnum");
            return (Criteria) this;
        }

        public Criteria andWtypeIsNull() {
            addCriterion("wtype is null");
            return (Criteria) this;
        }

        public Criteria andWtypeIsNotNull() {
            addCriterion("wtype is not null");
            return (Criteria) this;
        }

        public Criteria andWtypeEqualTo(String value) {
            addCriterion("wtype =", value, "wtype");
            return (Criteria) this;
        }

        public Criteria andWtypeNotEqualTo(String value) {
            addCriterion("wtype <>", value, "wtype");
            return (Criteria) this;
        }

        public Criteria andWtypeGreaterThan(String value) {
            addCriterion("wtype >", value, "wtype");
            return (Criteria) this;
        }

        public Criteria andWtypeGreaterThanOrEqualTo(String value) {
            addCriterion("wtype >=", value, "wtype");
            return (Criteria) this;
        }

        public Criteria andWtypeLessThan(String value) {
            addCriterion("wtype <", value, "wtype");
            return (Criteria) this;
        }

        public Criteria andWtypeLessThanOrEqualTo(String value) {
            addCriterion("wtype <=", value, "wtype");
            return (Criteria) this;
        }

        public Criteria andWtypeLike(String value) {
            addCriterion("wtype like", value, "wtype");
            return (Criteria) this;
        }

        public Criteria andWtypeNotLike(String value) {
            addCriterion("wtype not like", value, "wtype");
            return (Criteria) this;
        }

        public Criteria andWtypeIn(List<String> values) {
            addCriterion("wtype in", values, "wtype");
            return (Criteria) this;
        }

        public Criteria andWtypeNotIn(List<String> values) {
            addCriterion("wtype not in", values, "wtype");
            return (Criteria) this;
        }

        public Criteria andWtypeBetween(String value1, String value2) {
            addCriterion("wtype between", value1, value2, "wtype");
            return (Criteria) this;
        }

        public Criteria andWtypeNotBetween(String value1, String value2) {
            addCriterion("wtype not between", value1, value2, "wtype");
            return (Criteria) this;
        }

        public Criteria andWdepartIsNull() {
            addCriterion("wdepart is null");
            return (Criteria) this;
        }

        public Criteria andWdepartIsNotNull() {
            addCriterion("wdepart is not null");
            return (Criteria) this;
        }

        public Criteria andWdepartEqualTo(String value) {
            addCriterion("wdepart =", value, "wdepart");
            return (Criteria) this;
        }

        public Criteria andWdepartNotEqualTo(String value) {
            addCriterion("wdepart <>", value, "wdepart");
            return (Criteria) this;
        }

        public Criteria andWdepartGreaterThan(String value) {
            addCriterion("wdepart >", value, "wdepart");
            return (Criteria) this;
        }

        public Criteria andWdepartGreaterThanOrEqualTo(String value) {
            addCriterion("wdepart >=", value, "wdepart");
            return (Criteria) this;
        }

        public Criteria andWdepartLessThan(String value) {
            addCriterion("wdepart <", value, "wdepart");
            return (Criteria) this;
        }

        public Criteria andWdepartLessThanOrEqualTo(String value) {
            addCriterion("wdepart <=", value, "wdepart");
            return (Criteria) this;
        }

        public Criteria andWdepartLike(String value) {
            addCriterion("wdepart like", value, "wdepart");
            return (Criteria) this;
        }

        public Criteria andWdepartNotLike(String value) {
            addCriterion("wdepart not like", value, "wdepart");
            return (Criteria) this;
        }

        public Criteria andWdepartIn(List<String> values) {
            addCriterion("wdepart in", values, "wdepart");
            return (Criteria) this;
        }

        public Criteria andWdepartNotIn(List<String> values) {
            addCriterion("wdepart not in", values, "wdepart");
            return (Criteria) this;
        }

        public Criteria andWdepartBetween(String value1, String value2) {
            addCriterion("wdepart between", value1, value2, "wdepart");
            return (Criteria) this;
        }

        public Criteria andWdepartNotBetween(String value1, String value2) {
            addCriterion("wdepart not between", value1, value2, "wdepart");
            return (Criteria) this;
        }

        public Criteria andWdocIsNull() {
            addCriterion("wdoc is null");
            return (Criteria) this;
        }

        public Criteria andWdocIsNotNull() {
            addCriterion("wdoc is not null");
            return (Criteria) this;
        }

        public Criteria andWdocEqualTo(String value) {
            addCriterion("wdoc =", value, "wdoc");
            return (Criteria) this;
        }

        public Criteria andWdocNotEqualTo(String value) {
            addCriterion("wdoc <>", value, "wdoc");
            return (Criteria) this;
        }

        public Criteria andWdocGreaterThan(String value) {
            addCriterion("wdoc >", value, "wdoc");
            return (Criteria) this;
        }

        public Criteria andWdocGreaterThanOrEqualTo(String value) {
            addCriterion("wdoc >=", value, "wdoc");
            return (Criteria) this;
        }

        public Criteria andWdocLessThan(String value) {
            addCriterion("wdoc <", value, "wdoc");
            return (Criteria) this;
        }

        public Criteria andWdocLessThanOrEqualTo(String value) {
            addCriterion("wdoc <=", value, "wdoc");
            return (Criteria) this;
        }

        public Criteria andWdocLike(String value) {
            addCriterion("wdoc like", value, "wdoc");
            return (Criteria) this;
        }

        public Criteria andWdocNotLike(String value) {
            addCriterion("wdoc not like", value, "wdoc");
            return (Criteria) this;
        }

        public Criteria andWdocIn(List<String> values) {
            addCriterion("wdoc in", values, "wdoc");
            return (Criteria) this;
        }

        public Criteria andWdocNotIn(List<String> values) {
            addCriterion("wdoc not in", values, "wdoc");
            return (Criteria) this;
        }

        public Criteria andWdocBetween(String value1, String value2) {
            addCriterion("wdoc between", value1, value2, "wdoc");
            return (Criteria) this;
        }

        public Criteria andWdocNotBetween(String value1, String value2) {
            addCriterion("wdoc not between", value1, value2, "wdoc");
            return (Criteria) this;
        }

        public Criteria andWdoctelIsNull() {
            addCriterion("wdoctel is null");
            return (Criteria) this;
        }

        public Criteria andWdoctelIsNotNull() {
            addCriterion("wdoctel is not null");
            return (Criteria) this;
        }

        public Criteria andWdoctelEqualTo(String value) {
            addCriterion("wdoctel =", value, "wdoctel");
            return (Criteria) this;
        }

        public Criteria andWdoctelNotEqualTo(String value) {
            addCriterion("wdoctel <>", value, "wdoctel");
            return (Criteria) this;
        }

        public Criteria andWdoctelGreaterThan(String value) {
            addCriterion("wdoctel >", value, "wdoctel");
            return (Criteria) this;
        }

        public Criteria andWdoctelGreaterThanOrEqualTo(String value) {
            addCriterion("wdoctel >=", value, "wdoctel");
            return (Criteria) this;
        }

        public Criteria andWdoctelLessThan(String value) {
            addCriterion("wdoctel <", value, "wdoctel");
            return (Criteria) this;
        }

        public Criteria andWdoctelLessThanOrEqualTo(String value) {
            addCriterion("wdoctel <=", value, "wdoctel");
            return (Criteria) this;
        }

        public Criteria andWdoctelLike(String value) {
            addCriterion("wdoctel like", value, "wdoctel");
            return (Criteria) this;
        }

        public Criteria andWdoctelNotLike(String value) {
            addCriterion("wdoctel not like", value, "wdoctel");
            return (Criteria) this;
        }

        public Criteria andWdoctelIn(List<String> values) {
            addCriterion("wdoctel in", values, "wdoctel");
            return (Criteria) this;
        }

        public Criteria andWdoctelNotIn(List<String> values) {
            addCriterion("wdoctel not in", values, "wdoctel");
            return (Criteria) this;
        }

        public Criteria andWdoctelBetween(String value1, String value2) {
            addCriterion("wdoctel between", value1, value2, "wdoctel");
            return (Criteria) this;
        }

        public Criteria andWdoctelNotBetween(String value1, String value2) {
            addCriterion("wdoctel not between", value1, value2, "wdoctel");
            return (Criteria) this;
        }

        public Criteria andWrentIsNull() {
            addCriterion("wrent is null");
            return (Criteria) this;
        }

        public Criteria andWrentIsNotNull() {
            addCriterion("wrent is not null");
            return (Criteria) this;
        }

        public Criteria andWrentEqualTo(String value) {
            addCriterion("wrent =", value, "wrent");
            return (Criteria) this;
        }

        public Criteria andWrentNotEqualTo(String value) {
            addCriterion("wrent <>", value, "wrent");
            return (Criteria) this;
        }

        public Criteria andWrentGreaterThan(String value) {
            addCriterion("wrent >", value, "wrent");
            return (Criteria) this;
        }

        public Criteria andWrentGreaterThanOrEqualTo(String value) {
            addCriterion("wrent >=", value, "wrent");
            return (Criteria) this;
        }

        public Criteria andWrentLessThan(String value) {
            addCriterion("wrent <", value, "wrent");
            return (Criteria) this;
        }

        public Criteria andWrentLessThanOrEqualTo(String value) {
            addCriterion("wrent <=", value, "wrent");
            return (Criteria) this;
        }

        public Criteria andWrentLike(String value) {
            addCriterion("wrent like", value, "wrent");
            return (Criteria) this;
        }

        public Criteria andWrentNotLike(String value) {
            addCriterion("wrent not like", value, "wrent");
            return (Criteria) this;
        }

        public Criteria andWrentIn(List<String> values) {
            addCriterion("wrent in", values, "wrent");
            return (Criteria) this;
        }

        public Criteria andWrentNotIn(List<String> values) {
            addCriterion("wrent not in", values, "wrent");
            return (Criteria) this;
        }

        public Criteria andWrentBetween(String value1, String value2) {
            addCriterion("wrent between", value1, value2, "wrent");
            return (Criteria) this;
        }

        public Criteria andWrentNotBetween(String value1, String value2) {
            addCriterion("wrent not between", value1, value2, "wrent");
            return (Criteria) this;
        }

        public Criteria andWstatusIsNull() {
            addCriterion("wstatus is null");
            return (Criteria) this;
        }

        public Criteria andWstatusIsNotNull() {
            addCriterion("wstatus is not null");
            return (Criteria) this;
        }

        public Criteria andWstatusEqualTo(Integer value) {
            addCriterion("wstatus =", value, "wstatus");
            return (Criteria) this;
        }

        public Criteria andWstatusNotEqualTo(Integer value) {
            addCriterion("wstatus <>", value, "wstatus");
            return (Criteria) this;
        }

        public Criteria andWstatusGreaterThan(Integer value) {
            addCriterion("wstatus >", value, "wstatus");
            return (Criteria) this;
        }

        public Criteria andWstatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("wstatus >=", value, "wstatus");
            return (Criteria) this;
        }

        public Criteria andWstatusLessThan(Integer value) {
            addCriterion("wstatus <", value, "wstatus");
            return (Criteria) this;
        }

        public Criteria andWstatusLessThanOrEqualTo(Integer value) {
            addCriterion("wstatus <=", value, "wstatus");
            return (Criteria) this;
        }

        public Criteria andWstatusIn(List<Integer> values) {
            addCriterion("wstatus in", values, "wstatus");
            return (Criteria) this;
        }

        public Criteria andWstatusNotIn(List<Integer> values) {
            addCriterion("wstatus not in", values, "wstatus");
            return (Criteria) this;
        }

        public Criteria andWstatusBetween(Integer value1, Integer value2) {
            addCriterion("wstatus between", value1, value2, "wstatus");
            return (Criteria) this;
        }

        public Criteria andWstatusNotBetween(Integer value1, Integer value2) {
            addCriterion("wstatus not between", value1, value2, "wstatus");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}